import request from '@/utils/request'

// 查询年度维修量列表
export function listYearMaintenance(query) {
  return request({
    url: '/erp/yearMaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询年度维修量详细
export function getYearMaintenance(id) {
  return request({
    url: '/erp/yearMaintenance/' + id,
    method: 'get'
  })
}

// 新增年度维修量
export function addYearMaintenance(data) {
  return request({
    url: '/erp/yearMaintenance',
    method: 'post',
    data: data
  })
}

// 修改年度维修量
export function updateYearMaintenance(data) {
  return request({
    url: '/erp/yearMaintenance',
    method: 'put',
    data: data
  })
}

// 删除年度维修量
export function delYearMaintenance(id) {
  return request({
    url: '/erp/yearMaintenance/' + id,
    method: 'delete'
  })
}
